package com.mjw.tender.mapper;

import com.mjw.tender.domain.Comment;
import com.mjw.tender.dto.CommentDto;
import com.mjw.tender.dto.SecondCommonDto;
import com.mjw.tender.tk.mybatis.mapper.MyMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper extends MyMapper<Comment> {
    List<CommentDto> selectCommenDtoByAid(@Param("articleId") Long articleId, @Param("userId") Long userId);

    List<CommentDto> selectOrderByTs(Integer num);

    int increaseLike(Long commentId);

    int decreaseLike(Long commentId);
}